package com.biz.primus.model.member.enums;

import com.biz.primus.common.enums.EnumerableValue;
import com.biz.primus.common.enums.converter.BaseEnumValueConverter;

/**
 * 客户端类型
 *
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017年10月22日
 */
public enum ClientTypes implements EnumerableValue
{
    ios(0, "ios app"),
    android(1, "安卓app"),
    wechat(2, "微商城"),
    web(3, "浏览器"),
    manage(4, "后台"),
    bbc(5, "官网"),
    applet(6, "小程序"),
    unknown(7, "未知");

    public static class Converter extends BaseEnumValueConverter<ClientTypes>
    {
    }

    private int value;
    private String desc;

    @Override
    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    ClientTypes(int value, String desc)
    {
        this.value = value;
        this.desc = desc;
    }

}
